import request from '@/utils/request'

// 创建用户账户
export function createSeekUserAccount(data) {
  return request({
    url: '/car/seek-user-account/create',
    method: 'post',
    data: data
  })
}

// 更新用户账户
export function updateSeekUserAccount(data) {
  return request({
    url: '/car/seek-user-account/update',
    method: 'put',
    data: data
  })
}

// 删除用户账户
export function deleteSeekUserAccount(id) {
  return request({
    url: '/car/seek-user-account/delete?id=' + id,
    method: 'delete'
  })
}

// 获得用户账户
export function getSeekUserAccount(id) {
  return request({
    url: '/car/seek-user-account/get?id=' + id,
    method: 'get'
  })
}

// 获得用户账户分页
export function getSeekUserAccountPage(query) {
  return request({
    url: '/car/seek-user-account/page',
    method: 'get',
    params: query
  })
}

// 导出用户账户 Excel
export function exportSeekUserAccountExcel(query) {
  return request({
    url: '/car/seek-user-account/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
